using System;
using System.Collections;
using System.Collections.Generic;

using QLKS.DataLayer.Base;

namespace QLKS.DataLayer.BusinessObjects
{
    public partial class Capability : BusinessBase<int>
    {
        #region Declarations

		private string _capabilityName = String.Empty;
		private string _caption = String.Empty;
		
		
		
		#endregion

        #region Constructors

        public Capability() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_capabilityName);
			sb.Append(_caption);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string CapabilityName
        {
            get { return _capabilityName; }
			set
			{
				OnCapabilityNameChanging();
				_capabilityName = value;
				OnCapabilityNameChanged();
			}
        }
		partial void OnCapabilityNameChanging();
		partial void OnCapabilityNameChanged();
		
		public virtual string Caption
        {
            get { return _caption; }
			set
			{
				OnCaptionChanging();
				_caption = value;
				OnCaptionChanged();
			}
        }
		partial void OnCaptionChanging();
		partial void OnCaptionChanged();
		
        #endregion
    }
}
